package com.qingxin.shebei.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.codehaus.jackson.annotate.JsonIgnore;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.hibernate.annotations.GenericGenerator;


/**
 * 园区表
 */
@Entity
@Table(name = "shebei")
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
public class Shebei extends com.qingxin.sys.entity.BaseEntity implements
		java.io.Serializable {
	// Fields
	private static final long serialVersionUID = -2764411224520462030L;
	/**
	 * 
	 */
	
	private String sheid; //id
	private String parkid; //园区ID
	private String name;//设备名称
	private String address;//设备位置
	private String ip;// 设备ip地址
	private String port;//设备端口
	private String alleyway;//设备通道号
	private String username;//设备用户名
	private String password;//设备密码
	private String shetype;//设别类型    0 枪机  1球机
	private String brand;//品牌
	private String model;//型号
	private String remark;
	private String createBy;
	private Date createTime;

	// Constructors

	/** default constructor */
	public Shebei() {
	}

	public Shebei(String sheid, String parkid, String name, String address,
			String ip, String port, String alleyway, String username,
			String password, String shetype, String brand, String model,String remark,
			String createBy, Date createTime) {
		super();
		this.sheid = sheid;
		this.parkid = parkid;
		this.name = name;
		this.address = address;
		this.ip = ip;
		this.port = port;
		this.alleyway = alleyway;
		this.username = username;
		this.password = password;
		this.shetype = shetype;
		this.brand = brand;
		this.model = model;
		this.remark = remark;
		this.createBy = createBy;
		this.createTime = createTime;
	}


	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "sheid", unique = true, nullable = false, length = 32)
	public String getSheid() {
		return this.sheid;
	}

	public void setSheid(String sheid) {
		this.sheid = sheid;
	}

	@Column(name = "parkid", length = 32)
	public String getParkid() {
		return this.parkid;
	}

	public void setParkid(String parkid) {
		this.parkid = parkid;
	}

	@Column(name = "name", length = 100)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "address", length = 200)
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "ip", length = 50)
	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	@Column(name = "port", length = 50)
	public String getPort() {
		return port;
	}

	public void setPort(String port) {
		this.port = port;
	}

	@Column(name = "alleyway", length = 50)
	public String getAlleyway() {
		return alleyway;
	}

	public void setAlleyway(String alleyway) {
		this.alleyway = alleyway;
	}

	@Column(name = "username", length = 50)
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "password", length = 50)
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "shetype", length = 1)
	public String getShetype() {
		return shetype;
	}

	public void setShetype(String shetype) {
		this.shetype = shetype;
	}

	@Column(name = "brand", length = 100)
	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	@Column(name = "model", length = 100)
	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}
	
	@Column(name = "remark", length = 1000)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "create_by", length = 32)
	public String getCreateBy() {
		return this.createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	@Column(name = "create_time", length = 23)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}